<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://zuche.com/jsp/jstl/uaa-taglib" prefix="uaa"%>
<%@ page import="com.zuche.framework.dao.util.DictModel" %>
<%

    String path = request.getContextPath();

    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>支付平台演示项目</title>
    <script src="<%=basePath%>heatmap/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        var _hm = _hm || {};
        _hm.align = 'center';
        _hm.contentWidth = function(){
            //return $('body>header').width();
            return $('body').width();
        }
    </script>
    <script src="<%=basePath%>heatmap/jquery.cookie.js" type="text/javascript"></script>
    <script src="<%=basePath%>heatmap/heatmap.jsp" type="text/javascript"></script>

    <style type="text/css">

        body{
            padding: 10px 30px 0px 0px;
        }
        .cardInfo {
            height: 50px;
            width: 1000px;
        }
        .cardInfo div{
            float:left;display: block;margin-left: 30px;
        }
        .cardInfo a{
            margin-left: 20px;
        }

    </style>
</head>
<body>

<form method="post" id="eposForm"  target="_blank">

    <div>
        <div>
            <h1>易联测试页面</h1>
        </div>
        <!-- 共用信息部分 -->
        <div >
            <div class="cardInfo">
                <div>
                    账户类别：<select name="sysGroup" >
                    <option value="0">租车账户</option>
                    <option value="1" selected>专车账户</option>
                    <option value="5">汽车金融账户</option>
                </select>
                </div>
            </div>

            <div class="cardInfo">
                <div>
                    交易流水号：<input type="text" id="uniqueId" name="uniqueId" value="21127267277355001"/>
                </div>
                <div>
                    状态：<input type="text" id="status" name="status" value="1"/>
                    异常信息<input type="text" id="errMsg" name="errMsg" value=""/>
                </div>

            </div>
            <div class="cardInfo">
                <div>
                    businessMoney：<input type="text" id="businessMoney" name="businessMoney" value="1"/>
                </div>
                <div>
                    payerId：<input type="text" id="payerId" name="payerId" value=""/>
                </div>
                <div>
                    replyId:<input type="text" id="replyId" name="replyId" value="1201605180000001"/>
                </div>
            </div>
            <div class="cardInfo">
                回调地址：<input type="text" name="address" id="address" value="http://127.0.0.1:9080/cartp"/>
            </div>

        </div>

        <!-- 按钮部分 -->
        <div class="cardInfo">
            <a onclick="eposSubmit('<%=basePath%>openApiCreateNo.do_')" href="javascript:void(0);">创建流水</a>
            <a onclick="eposSubmit('<%=basePath%>notifyCreateNo.do_')" href="javascript:void(0);">回调创建流水</a>
        </div>



    </div>

</form>
<div>
    <h1>注意:</h1>
    <p style="color:red;font-size: 25;font-weight: bold;">DEMO项目使用时,请先修改setting.properties中配置的项目部署地址,勿使用localhost.</p>
</div>

<script type="text/javascript">
    function eposSubmit(url){
        document.getElementById("eposForm").setAttribute("action", url);
        document.getElementById("eposForm").submit();
    }

    function click(){
        alert(document.getElementById("a").value);
    }
</script>

</body>
</html>
